.class public Lcom/xingbook/ecloud/activity/ECloudGradeListAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field private a:Landroid/widget/RelativeLayout;

.field private b:Landroid/widget/ListView;

.field private c:Landroid/widget/LinearLayout;

.field private d:Landroid/widget/TextView;

.field private e:Lcom/xingbook/ui/ae;

.field private f:Lcom/xingbook/ecloud/a/b;

.field private g:Z

.field private h:Ljava/util/ArrayList;

.field private i:Lcom/xingbook/ecloud/activity/q;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->g:Z

    new-instance v0, Lcom/xingbook/ecloud/activity/q;

    invoke-direct {v0, p0}, Lcom/xingbook/ecloud/activity/q;-><init>(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;)V

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->i:Lcom/xingbook/ecloud/activity/q;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;)Lcom/xingbook/ui/ae;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->e:Lcom/xingbook/ui/ae;

    return-object v0
.end method

.method private a(I)V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a(Z)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->h:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->i:Lcom/xingbook/ecloud/activity/q;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/ecloud/activity/q;->sendEmptyMessage(I)Z

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/ecloud/activity/p;

    invoke-direct {v1, p0, p1}, Lcom/xingbook/ecloud/activity/p;-><init>(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;I)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;I)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a(I)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;Ljava/util/ArrayList;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->h:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic b(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;)Landroid/widget/ListView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->b:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic d(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;)Lcom/xingbook/ecloud/a/b;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->f:Lcom/xingbook/ecloud/a/b;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->h:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->d:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic g(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;)Lcom/xingbook/ecloud/activity/q;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->i:Lcom/xingbook/ecloud/activity/q;

    return-object v0
.end method


# virtual methods
.method public declared-synchronized a(Z)V
    .locals 1

    monitor-enter p0

    :try_start_0
    iput-boolean p1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->g:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized a()Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->g:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u6559\u80b2\u4e91-\u73ed\u7ea7\u5217\u8868"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 9

    const/4 v8, 0x1

    const/4 v7, 0x0

    const/4 v6, -0x2

    const/4 v5, -0x1

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Lcom/xingbook/ecloud/a/b;

    invoke-static {p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v2

    invoke-direct {v1, v0, v2}, Lcom/xingbook/ecloud/a/b;-><init>(Landroid/content/Context;F)V

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->f:Lcom/xingbook/ecloud/a/b;

    new-instance v1, Landroid/widget/RelativeLayout;

    invoke-direct {v1, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a:Landroid/widget/RelativeLayout;

    const v2, -0xa0a0b

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v1}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->setContentView(Landroid/view/View;)V

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v1

    new-instance v2, Lcom/xingbook/ui/t;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v3}, Lcom/xingbook/ui/t;-><init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V

    const-string v3, "\u73ed\u7ea7\u5217\u8868"

    iput-object v3, v2, Lcom/xingbook/ui/t;->c:Ljava/lang/String;

    const v3, -0x33ffec

    invoke-virtual {v2, v3}, Lcom/xingbook/ui/t;->setBackgroundColor(I)V

    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    sget v4, Lcom/xingbook/ui/t;->b:I

    invoke-direct {v3, v1, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v3}, Lcom/xingbook/ui/t;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/ListView;

    invoke-direct {v1, v0}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->b:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->b:Landroid/widget/ListView;

    invoke-virtual {v1, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->b:Landroid/widget/ListView;

    const v2, 0xffffff

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setCacheColorHint(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->b:Landroid/widget/ListView;

    const v2, 0x7f070043

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setSelector(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->b:Landroid/widget/ListView;

    invoke-virtual {v1, v7}, Landroid/widget/ListView;->setDividerHeight(I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    sget v2, Lcom/xingbook/ui/t;->b:I

    iput v2, v1, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->b:Landroid/widget/ListView;

    invoke-virtual {v2, v1}, Landroid/widget/ListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->b:Landroid/widget/ListView;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/LinearLayout;

    invoke-direct {v1, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v8}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    const/16 v2, 0x11

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    new-instance v2, Lcom/xingbook/ecloud/activity/o;

    invoke-direct {v2, p0}, Lcom/xingbook/ecloud/activity/o;-><init>(Lcom/xingbook/ecloud/activity/ECloudGradeListAct;)V

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    sget v2, Lcom/xingbook/ui/t;->b:I

    iput v2, v1, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, v0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    sget-object v0, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    const v0, 0x7f020241

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageResource(I)V

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v2, 0x7f0b000f

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v0, v0}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->d:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->d:Landroid/widget/TextView;

    const/high16 v1, 0x41f0

    invoke-static {p0}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v2

    mul-float/2addr v1, v2

    invoke-virtual {v0, v7, v1}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->d:Landroid/widget/TextView;

    const v1, -0x666667

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->d:Landroid/widget/TextView;

    invoke-static {v8}, Landroid/graphics/Typeface;->defaultFromStyle(I)Landroid/graphics/Typeface;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->d:Landroid/widget/TextView;

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v6, v6}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->c:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->e:Lcom/xingbook/ui/ae;

    const/16 v0, 0x96

    invoke-direct {p0, v0}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a(I)V

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->f:Lcom/xingbook/ecloud/a/b;

    invoke-virtual {v0, p3}, Lcom/xingbook/ecloud/a/b;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/xingbook/ecloud/b/e;

    if-eqz v1, :cond_0

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string v2, "com.xingbook.ecloud.activity.ECloudGradeDetailAct.INTENT_GRADEID"

    check-cast v0, Lcom/xingbook/ecloud/b/e;

    invoke-virtual {v0}, Lcom/xingbook/ecloud/b/e;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const/4 v0, 0x1

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->finish()V

    :cond_0
    return-void
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->a:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->e:Lcom/xingbook/ui/ae;

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/ecloud/activity/ECloudGradeListAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
